# CMake File for cdragon
# Copyright (C) 2009 Hajime Yoshimori <RoarLudros@gmail.com>
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

cmake_minimum_required(VERSION 2.6)

set(CDRAGON_SRCS 
"${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/cdragon.cpp"
)

set(CDRAGON_HDRS
"${CMAKE_CURRENT_SOURCE_DIR}/src/cdragon.h"
)

DS_CREATE_GETTEXT_TARGETS(
  DOMAIN_NAME ${CDRAGON_DOMAIN_NAME}
  LOCALE_LIST "ja"
  COPYRIGHT_HOLDER "Hajime Yoshimori <RoarLudros@gmail.com>"
  SOURCES ${CDRAGON_SRCS} ${CDRAGON_HDRS}
  PO_DIR  "${CMAKE_CURRENT_SOURCE_DIR}/po"
  POT_BUILD_DIR  "${CMAKE_CURRENT_SOURCE_DIR}/po"
  PO_BUILD_DIR   "${CMAKE_CURRENT_BINARY_DIR}/po"
  MO_INSTALL_DIR "${MO_INSTALL_PATH}"
  ADD_MO_TARGET_TO_ALL 1
  CREATE_POT_TARGET    1
  CREATE_PO_TARGET     1
  CREATE_PO_LOCALE_TARGETS 1
  CREATE_MO_LOCALE_TARGETS 1
)

add_subdirectory(src)
